import request from '@/utils/request'

// 获取权限列表数据
export const getPermissionList=()=>{
  return request.get('/sys/permission')
}

// 新增权限点数据
export const addPermission=(data)=>{
  return request.post('/sys/permission',data)
}

// 获取权限点详情数据
export const getPermissionDetail=(id)=>{
  return request.get(`/sys/permission/${id}`)
}


// 修改权限点详情数据
export const editPermissionDetail=(data)=>{
  return request.put(`/sys/permission/${data.id}`,data)
}

// 删除权限点
export const deletePermission=(id)=>{
  return request.delete(`/sys/permission/${id}`)
}
